package com.huluobo.high3videoproject.mvp.search.presenter;

import com.huluobo.high3videoproject.bean.VideoBeanResult;

import io.reactivex.Observable;
import retrofit2.http.Query;

public interface SearchContract {
    interface Model {
        Observable<VideoBeanResult> getVideos(int currentPage, int size);

        Observable<VideoBeanResult> findVideoByName(String keywords);
    }

    interface Presenter {
        void getVideos(int currentPage, int size);

        void findVideoByName(String keywords);
    }

    interface View {
        void onGetVideosSuccess(VideoBeanResult videoBeanResult);

        void onGetVideosFailed(String error);

        void onFindVideoSuccess(VideoBeanResult videoBeanResult);

        void onFindVideoFailed(String error);
    }
}
